package com.facemox.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.facemox.bean.EnvConfig;
import com.facemox.mapper.EnvConfigMapper;
import com.facemox.service.EnvConfigService;

@Service
public class EnvConfigServiceImpl implements EnvConfigService {

    @Autowired
    private EnvConfigMapper envConfigMapper;
    
    @Override
    public int addEnvConfig(EnvConfig envConfig) {
        int effectLine = envConfigMapper.addEnvConfig(envConfig);
        return effectLine;
    }

    @Override
    public EnvConfig getEnvConfig() {
        EnvConfig envConfig = envConfigMapper.getEnvConfig();
        return envConfig;
    }

    @Override
    public int UpdateGlobalParameter(EnvConfig envConfig) {
        int effectLine = envConfigMapper.update(envConfig);
        return effectLine;
    }

}
